/**
 * @Author: easten
 * @Created: 2024-08-10 23:54:11
 * @Description: 数据字典
 *
 */
import React, { useState } from "react";
import DictTable from "./DictTable";
import { Col, Row } from "tdesign-react";
import { ModuleCommonProps } from "_common/DataType";
const SysDictComp: React.FC<ModuleCommonProps> = (props: ModuleCommonProps) => {
  const { axios } = props;
  const [parentId, setParentId] = useState<number>();
  return (
    <div className="w-full h-full overflow-x-hidden">
      <Row gutter={[20]}>
        <Col span={6}>
          <DictTable children={false} onRowClick={setParentId} axios={axios} />
        </Col>
        <Col span={6}>
          <DictTable children={true} parentId={parentId} axios={axios} />
        </Col>
      </Row>
    </div>
  );
};
export default SysDictComp;
